package com.dddd.blog.blogpost;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author 喵星球的大橘
 */
@SpringBootApplication
@EnableSwagger2
@MapperScan("com.dddd.blog.blogpost.mapper")
/**
 * 公共依赖的配置类(bean)
 */
@ComponentScan(basePackages = {"com.dddd.blog"})
@EnableFeignClients(basePackages = "com.dddd.blog.api.post.feign")
@EnableCaching
public class BlogPostService {

    public static void main(String[] args) {
        SpringApplication.run(BlogPostService.class,args);
    }
}
